package com.lm.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @version 1.0
 * @dscription:TODO
 * @author32477
 * @date 2025/9/19 9:17
 */
@Configuration
public class WebSocketConfig {
    // 添加这个配置类后，重启后端，Spring 会强制扫描所有 @ServerEndpoint 注解的类
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
